import request from '@/utils/request'
/**
 * 标签拉群列表
 * @param data
 * @returns
 */
export const getAutoGroupList = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/tag/pull-groupchat/list',
    method: 'POST',
    data
  })
}
// 删除
export const customerRemove = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/tag/pull-groupchat/delete',
    method: 'POST',
    data
  })
}
//选择群聊列表
export const getGroupManageList = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/group/list',
    method: 'POST',
    data
  })
}
// 标签拉群-详情基础数据
export const autoGroupInfo = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/tag/pull-groupchat/basic?pull_id=9',
    method: 'GET',
    params: data
  })
}

// 客户明细 - 头部统计
export const getCustomerCount = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/tag/pull-groupchat/basic',
    method: 'GET',
    params: data
  })
}
// 客户明细 - 成员邀请列表
export const getCustomerList = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/tag/pull-groupchat/member/list',
    method: 'POST',
    data
  })
}

//预计筛选客户数
export const labelFilterNum = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/tag/pull-groupchat/screen',
    method: 'POST',
    data
  })
}
// 线索等级
export const cluesLevelList = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/level/list',
    method: 'get',
    params: data
  })
}

// 客户阶段
export const stageList = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/stage/list',
    method: 'post',
    data
  })
}

// 创建标签拉群
export const createLabel = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/tag/pull-groupchat/create',
    method: 'post',
    data
  })
}
// chankan
export const LabelInfo = (data: any) => {
  return request({
    url: '/scrm-api/console/customer/tag/pull-groupchat/info',
    method: 'get',
    params: data
  })
}
